// 封装本地存储 工具

// 存
export function setToken (token) {
  localStorage.setItem('token', token)
}

// 取
export function getToken () {
  return localStorage.getItem('token') || ''
}

// 删
export function removeToken () {
  localStorage.removeItem('token')
}

// 判断是否有token
export function hasToken () {
  return !!getToken()
}
